package 代码记录.Bit48天集训;

import java.math.BigInteger;
import java.util.Scanner;

/**1.不用加减乘除做加法(已搞定)
 * 2.三角形(已搞定)
 * @author zx
 * @create 2022-05-24 21:08
 */
public class day_27 {
    /**
     * 二进制加法。发现一个特点。
     * 位的异或运算跟求'和'的结果一致：(不考虑进位)
     * 异或 1^1 = 0 1^0 = 1 0^0 = 0
     * 求和 1+1 = 0 1+0 = 1 0+0 = 0
     * 位的与运算跟求'进位'的结果一致：(只考虑进位)
     * 位与 1&1 = 1 1&0 = 0 0&0 = 0
     * 进位 1+1 = 1 1+0 = 0 0+0 = 0
     * 于是可以用异或运算和与运算来表示加法
     * @return
     * sum存放异或的结果,未进位的异或;
     * jin存放进位结果,通过位移操作
     */
    public int addAB(int num1, int num2) {
        int sum, jin;
        while (num2 != 0) {
            sum = num1 ^ num2;
            jin = (num1 & num2) << 1;
            num1 = sum;
            num2 = jin;
        }
        return num1;
    }

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            BigInteger a = sc.nextBigInteger();
            BigInteger b = sc.nextBigInteger();
            BigInteger c = sc.nextBigInteger();
            if(a.add(b).compareTo(c) > 0 && b.add(c).compareTo(a) > 0 && a.add(c).compareTo(b) > 0){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }
        }
    }
}
